<?php
/**
 * 个人页面的相关总控制器
 * 仲伟涛 2011-3
 */
class Resume_Page_Home extends Resume_Page_Abstract
{
    public function validate(ME_Request $input, ME_Response $output)
    {
        //获得登录的用户
        $input->myLoginInfo = Libs_UcUser::checkLogin($input,$output);
        $input->uid         = (int)$input->myLoginInfo['uid'];
        $input->userName    = $input->myLoginInfo['userName'];
        if($input->uid == 0){
            
            header("Location:?c=Login");
            exit;
        }
        return true;
    }
    public function loadDb()
    {
        $this->ucenterDb = Db_Ucenter::instance();
    }

    public function doDefault(ME_Request $input, ME_Response $output)
    {
        echo $input->userName;
        echo "dd";
        $output->header = Resume_Plugin_Header::getHeader($input, $output);
        $output->footer = Resume_Plugin_Header::getFooter($input, $output);
        $output->setTemplate('Home');
        
    }
}

?>
